package cn.itsource.mapper;

import cn.itsource.domain.Article;
import cn.itsource.query.ArticleQuery;

import java.util.List;

public interface ArticleMapper {

    void add(Article article);

    void update(Article article);

    void del(Long id);

    void delList(List ids);

    Article get(Long id);

    List<Article> getAll();

    List<Article> pageQuery(ArticleQuery query);


    List<Article> getCorrelationArticles(Long id);

    List<Article> getarticleTypes(Long id);
}
